
<div id="pagepro" class="w920" >
	<div class="pic" >
	
			
			
		<a href="javascript:showBig();"><img  style="padding-left:10px;" src="<?=$this->artwork->getPhotoWebAccessablePath('260x260');?>" /></a>
		<p>
			<a href="/artwork/add-order/artworkId/<?php echo $this->artwork->id;?>" title="立即购买"><span>立即购买</span></a>
			
			
		</p>
		
		
		
	</div>
	<div class="cs">
		<h2><?=$this->escape($this->artwork->name)?></h2>
		<dl>
			<dt>货号</dt>
			<dd><? echo ($this->artwork->good_num);?></dd>
		</dl>
		<dl>
			<dt>分类</dt>
			<dd><? echo ($this->category->name?$this->category->name:$this->parentCategory->name);?></dd>
		</dl>
		
		<dl>
			<dt>规格</dt>
			<dd><?php echo $this->artwork->inch_size ." / ". $this->artwork->size;?></dd>
		</dl>
		<dl>
			<dt>创作年代</dt>
			<dd><?=substr($this->artwork->date_of_creation, 0, 4);?></dd>
		</dl>
		<?php if ($this->artwork->subject) {
			$subjectObjs = $this->artwork->getSubjectsObj();
			foreach ($subjectObjs as $subjectObj) {
				$subjectNames[] = trim($subjectObj->name);
			}
			$subject = implode(', ', $subjectNames);
		?>
		<dl>
			<dt>主题</dt>
			<dd><?=$subject?></dd>
		</dl>
		<?php } // endif?>
		
		
		<dl>
			<dt>售价</dt>
			<dd><span id="price"><?=$this->artwork->usd_price?></span> <span id="currency">USD</span>
				
			</dd>
		</dl>
		
		
		
		
		<br>
		
		 
		<p><?=$this->artwork->intro?></p>
	</div>
</div>

<div id="content" class="w920">
	<div class="conleft" style="border-right:1px solid #bcbec0; padding-left:10px;padding-right:0;width:920px;">
		
		<div class="pagework">
			<h2>相关作品</h2>
			<ul>
			<?php foreach ($this->comparableWorks as $work) {?>
				<li><a href="/artwork/show?id=<?=$work->id?>"><img src="<?=$work->getPhotoWebAccessablePath('130x130')?>" alt="<?=$this->escape($work->name)?>" /></a></li>
			<?php }?>
			</ul>
		</div>
		
	</div>
	
	<div id="dialog-full-size" style="display: none; text-align:center;" title="<?=$this->artwork->name;?>">
	<img src="<?=$this->artwork->getPhotoWebAccessablePath("700x700");?>" />
	</div>
	<script type="text/javascript">
		function showBig() {
			$("#dialog-full-size").dialog({
				autoOpen: false,
				width: 850,
				modal: true
				
			});

			$('#dialog-full-size').dialog('open');
		}
	</script>
	
</div>
